import { ColumnProps } from "/@/components/ProTable/interface";

// 配置项
const columns = (): Partial<ColumnProps>[] => {
    return [{
        type: "selection",
        width: 60,
        fixed: "left"
    },
    {
        prop: "dataSource",
        label: "操作平台",
        enum: [{label: '管理平台', value: 'web'}, {label: '小程序', value: 'mp'}],
        tag: true,
        width: 140,
    },
    {
        prop: "operateType",
        label: "操作类型",
        enum: [{label: '新增', value: 'add'}, {label: '编辑', value: 'edit'}, {label: '删除', value: 'delete'}],
        tag: true,
        width: 140,
    },
    {
        prop: "operateUser",
        label: "操作用户",
        width: 200,
    },
    {
        prop: "columnName",
        label: "操作字段",
        search: true,
        width: 200,
    },
    {
        prop: "content",
        label: "操作内容",
    },
    {
        prop: "createTime",
        label: "操作时间",
        width: 200,
    }
    ]
}

export default columns;